﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace TankWin.Classes
{
    class GUIConstruction:GUI
    {
       public override void Draw(Graphics _G)
        {
            Bitmap _myBitmap = new Bitmap(global::TankWin.ImageTank.bgConstruction);
            Graphics _myGraphic = Graphics.FromImage(_myBitmap);
            _myGraphic.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            _G.DrawImageUnscaled(_myBitmap, 0, 0);
        }
        public override void InputKey(Keys _key)
        {
            switch (_key)
            {
                case Keys.Escape:
                    if (GUIMainMenu._enter_player.IsLoadCompleted && GUIPlay._hasSound)
                        GUIMainMenu._enter_player.Play();
                    frMain._statusGUI = EStatusGUI.MainMenuGUI;
                    break;
                case Keys.Back:
                    goto case Keys.Escape;
                case Keys.Enter:
                    goto case Keys.Escape;
            }
        }
    }
}
